let t = require;
let  e = module
let  o =  e.exports;
 o.default =  e.exports;

                'use strict';
                console.log("start"),
                    Object.defineProperty(o, '__esModule', {
                        value: !0
                    }),
                    (o.ArrayUtils = void 0);
                var n = t('MathUtils'),
                    i = (function() {
                        function t() {}
                        return (
                            (t.randomArray = function(t) {
                                if (t)
                                    for (
                                        var e = void 0, o = void 0, i = t.length - 1, r = 0; r < i; r++
                                    ) {
                                        (o = n.default.randomInt(r + 1, i)),
                                        (e = t[r]),
                                        (t[r] = t[o]),
                                        (t[o] = e);
                                    }
                            }),
                            (t.randomWeight = function(t) {
                                for (var e = 0, o = 0; o < t.length; o++) {
                                    e += t[o];
                                }
                                for (
                                    var i = n.default.randomInt(e), r = 0, a = 0; a < t.length;

                                ) {
                                    if (i <= (r += t[a])) return a;
                                    a += 1;
                                }
                            }),
                            (t.randomAverage = function(t) {
                                return null == t || 0 == t.length ?
                                    null :
                                    t[n.default.randomInt(t.length - 1)];
                            }),
                            (t.randomList = function(t, e) {
                                if (e > t.length) return t;
                                for (
                                    var o = [],
                                        n = function n() {
                                            var e = i.randomAverage(t);
                                            o.every(function(t) {
                                                return t != e;
                                            }) && o.push(e);
                                        },
                                        i = this; o.length < e;

                                ) {
                                    n();
                                }
                                return o;
                            }),
                            (t.toRandomList = function(t) {
                                for (
                                    var e = t.length,
                                        o = [],
                                        n = function n() {
                                            var e = i.randomAverage(t);
                                            o.every(function(t) {
                                                return t != e;
                                            }) && o.push(e);
                                        },
                                        i = this; o.length < e;

                                ) {
                                    n();
                                }
                                return o;
                            }),
                            (t.contains = function(e, o, n) {
                                return void 0 === n && (n = null), null != t.search(e, o, n);
                            }),
                            (t.search = function(t, e, o) {
                                if ((void 0 === o && (o = null), o)) {
                                    for (var n = 0; n < t.length; n++) {
                                        if ((i = t[n]) && i[o] == e) return i;
                                    }
                                } else
                                    for (n = 0; n < t.length; n++) {
                                        var i;
                                        if ((i = t[n]) == e) return i;
                                    }
                                return null;
                            }),
                            (t.convert2Array = function(t, e) {
                                for (var o = [], n = 0; n < t.length;) {
                                    for (var i = [], r = 0; r < e && n < t.length; r++) {
                                        i.push(t[n++]);
                                    }
                                    o.push(i);
                                }
                                return o;
                            }),
                            (t.supplement = function(t, e, o) {
                                void 0 === o && (o = 0);
                                for (var n = e - t.length, i = 0; i < n; i++) {
                                    t.push(o);
                                }
                            }),
                            t
                        );
                    })();
                (o.ArrayUtils = i), console.log("end");
            module.exports =  e.exports;